import { Button, Text } from "@tarojs/components";
import { useLoad } from "@tarojs/taro";
import BasePageCom from "@/components/BasePageCom";
import { Router } from "tarojs-router-next";
import "./index.scss";

export default function Index() {
  useLoad(() => {
    console.log("Page loaded.");
  });

  return (
    <BasePageCom title={APP_NAME} needBackIcon={false}>
      <Text>Hello world!</Text>
      <Button
        onClick={() => {
          Router.toLogin();
        }}
      >
        登录
      </Button>
    </BasePageCom>
  );
}
